﻿<Window x:Uid="Window_1" x:Class="Microsoft.Forums.ForumsClient.AppWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ForumsClient="clr-namespace:Microsoft.Forums.ForumsClient"
    xmlns:Data="clr-namespace:Microsoft.Forums.ForumsClient.Models"
    Title="Microsoft Forums Client - July 08 CTP Refresh" 
    Width="900" Height="768" MinWidth="640" MinHeight="480" 
	FontFamily="Tahoma"
    WindowStartupLocation="CenterScreen"
	FontSize="11" 
    DataContext="{x:Static Data:AppDataModel.Instance}" 
    Content="{DynamicResource MainWindowView}" >
    <Window.CommandBindings>
        <CommandBinding Command="{x:Static ForumsClient:Commands.SynchronizeForum}"  CanExecute="SynchronizeForum_CanExecute" Executed="SynchronizeForum_Executed" />
        <CommandBinding Command="{x:Static ForumsClient:Commands.SynchronizeAllForums}"  CanExecute="SynchronizeAllForums_CanExecute" Executed="SynchronizeAllForums_Executed" />
        <CommandBinding Command="{x:Static ForumsClient:Commands.UnsubscribeForum}"  CanExecute="UnsubscribeForum_CanExecute" Executed="UnsubscribeForum_Executed" />
        <CommandBinding Command="{x:Static ForumsClient:Commands.LogOn}"  CanExecute="LogOn_CanExecute" Executed="LogOn_Executed" />
        <CommandBinding Command="{x:Static ForumsClient:Commands.ShowSubscribeDialog}"  CanExecute="ShowSubscribeDialog_CanExecute" Executed="ShowSubscribeDialog_Executed" />
        <CommandBinding Command="{x:Static ForumsClient:Commands.ChangeTheme}"  CanExecute="ChangeTheme_CanExecute" Executed="ChangeTheme_Executed" />
        <CommandBinding Command="{x:Static ForumsClient:Commands.ShowOptionsSettingsDialog}"  CanExecute="ShowOptionsSettingsDialog_CanExecute" Executed="ShowOptionsSettingsDialog_Executed" />

        <CommandBinding Command="{x:Static ForumsClient:Commands.ShowCreateThreadForm}"  CanExecute="ShowCreateThreadForm_CanExecute" Executed="ShowCreateThreadForm_Executed" />

    
    </Window.CommandBindings>
</Window>
